home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / dobbs / v17n02 / sfedit.exe / SFILEDLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-27  |  1.5 KB  |  49 lines

  1. #ifndef SFILEDLG_H
  2. #define SFILEDLG_H
  3.  
  4. /* Dialog Control IDs */
  5. #define     IDD_FILENAME    400
  6. #define     IDD_DIRS        401
  7. #define     IDD_PATH        402
  8. #define     IDD_TYPES       403
  9.  
  10. /* Bitmap IDs */
  11. #define     BMP_FOLDER      100
  12. #define     BMP_REMOVE      101
  13. #define     BMP_FIXED       102
  14. #define     BMP_REMOTE      103
  15. #define     BMP_CDROM       104
  16. #define     BMP_RAM         105
  17. #define     BMP_SUBST       106
  18. #define     BMP_FOLDERM     200
  19. #define     BMP_REMOVEM     201
  20. #define     BMP_FIXEDM      202
  21. #define     BMP_REMOTEM     203
  22. #define     BMP_CDROMM      204
  23. #define     BMP_RAMM        205
  24. #define     BMP_SUBSTM      206
  25.  
  26. /* Types */
  27. typedef struct
  28. {
  29.     char        szFile[13];             // Wildcard file type
  30.     char        szDesc[32];             // Description of this file
  31. } SFType;
  32.  
  33. typedef struct
  34. {
  35.     HWND        hWnd;                   // Parent of dialog box
  36.     SFType FAR* lpTypes;                // Array of SFType, last element in
  37.                                         //   this array should be empty
  38.     int         nType;                  // Default type spec, an index to lpTypes
  39.     LPSTR       lpszFileSpec;           // Default file name, on return this
  40.                                         //   buffer contains the selected file
  41.     int         nMaxFileSpec;           // lpszFileSpec buffer size
  42.     LPSTR       lpszTitle;              // Dialog box window title
  43. } SFDlg;
  44.  
  45. /* Function Prototypes */
  46. int FAR PASCAL _export SFileDlg(SFDlg FAR* sfdlg);
  47. #endif
  48.  
  49.